import api from '@/service/api';

import { Params as AddParams } from './add';

type Params = AddParams & {
  id: number;
}

/*
* 编辑币种
* */
export default (params: Params): Promise<any> => {
  const { id, ...rest } = params;
  return api.post(`/admin/update-token/${id}`, rest);
}
